package com.suse.service.user.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>
 * 用户注册参数
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-08-18 16:19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserRegisterParam", description="用户注册参数")
public class RegisterParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "昵称",required = true)
    @NotEmpty(message = "昵称不能为空")
    private String nickname;

    @ApiModelProperty(value = "手机号",required = true)
    @NotEmpty(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "密码",required = true)
    @NotEmpty(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "昵称",required = true)
    @NotEmpty(message = "验证码不能为空")
    private String code;

}
